﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;

namespace Microsoft.Reputation.Tests.FrontEndCommon
{
    public static class UrfParser
    {
        public static IEnumerable<string> ReadUrfFile(this string filePath)
        {
            string line = String.Empty;

            using (StreamReader stream = File.OpenText(filePath))
            {
                while ((line = stream.ReadLine()) != null)
                {
                    if (!line.ToLowerInvariant().StartsWith("count"))
                    {
                        yield return line;
                    }
                }
            }
        }
    }
}
